<template>
  <view class="ceil" @click="goTo(item.url)">
    <view class="title">
       {{ item.title }}
    </view>
    <image src="../../static/r.png"></image>
  </view>
</template>

<script lang="ts" setup>
import { to } from '@/utils/uniapi';
interface Item {
  title: string;
  url: string;
}
defineProps<{
  item: Item;
}>();
function goTo(e: string) {
  to(e);
}
</script>

<style scoped lang="scss">
.ceil {
  width: 690rpx;
  background-color: #fff;
  margin: 10rpx auto;
  padding: 20rpx;
  border-radius: 10rpx;
  box-sizing: border-box;
  box-shadow: 8rpx 8rpx 20rpx 0rpx rgba(229, 237, 247, 0.4), 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.302);
  display: flex;
  align-items: center;
  justify-content: space-between;
  image{
    width: 20rpx;
    height: 30rpx;
    
  }
}
</style>
